package com.ruoyi.system.BusinessContract.service.impl;

import java.util.List;

import com.ruoyi.common.config.RuoYiConfig;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.file.FileUploadUtils;
import com.ruoyi.common.utils.file.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import com.ruoyi.system.BusinessContract.mapper.BusinessContractMapper;
import com.ruoyi.system.BusinessContract.domain.BusinessContract;
import com.ruoyi.system.BusinessContract.service.IBusinessContractService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * BussinessContractService业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-24
 */
@Service
public class BusinessContractServiceImpl implements IBusinessContractService 
{
    @Autowired
    private BusinessContractMapper businessContractMapper;

    /**
     * 查询BussinessContract
     * 
     * @param contractId BussinessContract主键
     * @return BussinessContract
     */
    @Override
    public BusinessContract selectBusinessContractByContractId(String contractId)
    {
        return businessContractMapper.selectBusinessContractByContractId(contractId);
    }

    /**
     * 查询BussinessContract列表
     * 
     * @param businessContract BussinessContract
     * @return BussinessContract
     */
    @Override
    public List<BusinessContract> selectBusinessContractList(BusinessContract businessContract)
    {
        return businessContractMapper.selectBusinessContractList(businessContract);
    }

    /**
     * 新增BussinessContract
     * 
     * @param businessContract BussinessContract
     * @return 结果
     */
    @Override
    public int insertBusinessContract(BusinessContract businessContract)
    {

        return businessContractMapper.insertBusinessContract(businessContract);
    }


    /**
     * 修改BussinessContract
     * 
     * @param businessContract BussinessContract
     * @return 结果
     */
    @Override
    public int updateBusinessContract(BusinessContract businessContract)
    {
        return businessContractMapper.updateBusinessContract(businessContract);
    }

    /**
     * 批量删除BussinessContract
     * 
     * @param contractIds 需要删除的BussinessContract主键
     * @return 结果
     */
    @Override
    public int deleteBusinessContractByContractIds(String[] contractIds)
    {
        return businessContractMapper.deleteBusinessContractByContractIds(contractIds);
    }

    /**
     * 删除BussinessContract信息
     * 
     * @param contractId BussinessContract主键
     * @return 结果
     */
    @Override
    public int deleteBusinessContractByContractId(String contractId)
    {
        return businessContractMapper.deleteBusinessContractByContractId(contractId);
    }
}
